import request from "@/api/index"

export default {
  //条件查询
  queryByCondition (params) {
    const url = "traceability/traceSourceCodeConfig/queryByCondition"
    return request.post(url,
      { ...params })
  },
  //分页条件查询
  queryPageByCondition (params) {
    const url = "traceability/traceSourceCodeConfig/queryPageByCondition"
    return request.post(url, { ...params })
  },
  add (params) {
    const url = "traceability/traceSourceCodeConfig/add"
    return request.post(url, params)
  },
  edit (params) {
    const url = "traceability/traceSourceCodeConfig/edit"
    return request.post(url, params)
  },
  delById (params) {
    const url = "traceability/traceSourceCodeConfig/delById"
    return request.get(url, params)
  },
  delListById (params) {
    const url = "traceability/traceSourceCodeConfig/delListById"
    return request.get(url, params)
  }
}